<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
// 注册路由
Route::rule('list','index/Question/list');
Route::rule('info','index/Question/info');

Route::rule('record_list','index/Record/list');
Route::rule('record_insert','index/Record/insert');

Route::rule('login','index/User/login');
Route::rule('startUser','index/User/startUser');
Route::rule('stopUser','index/User/stopUser');


Route::rule('get_new_version','index/App/getNewVersion');

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],

];
